//
//  StreamBuffer.h
//  tcpoctest
//
//  Created by gump on 10/18/12.
//  Copyright (c) 2012 gump. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface StreamBuffer : NSObject
{
    int           writePoint;
    int           readPoint;
    int           length;
    unsigned char *streamDate;
    int           mReadValue;
}

-(void)Write:(unsigned char *)date withSize:(int)size;
-(bool)ReadHead;
-(bool)Read;
-(bool)Read:(unsigned char*)date withLength:(int)len;
-(int)getStreamSize;
-(void)reSet;
-(void)Clean;
-(int)getReadValue;

@end
